package com.woniu34.user.mapper;

import com.woniu34.user.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper extends tk.mybatis.mapper.common.Mapper<User> {

    @Select("select * from tb_user where user_account=#{userAccount} and user_password=#{password}")
    User findByUserAccountAndPassword(@Param("userAccount") String userAccount, @Param("password") String password);


    @Select("select * from tb_user where user_account=#{userAccount}")
    User findByUserAccount(@Param("userAccount") String userAccount);

}
